#ifndef __CTABCTRL_H__
#define __CTABCTRL_H__

#include <WinSock2.h>
#include <Windows.h>
#include <CommCtrl.h>
#include <vector>

typedef struct TAG_TABPAGE {
	WORD		wDialogID	;
	DLGPROC		lpfnDlgProc	;
	char*		lpszText	;
	HICON		hIcon		;
	HWND		hWndTabPage	;
} TABPAGE, *LPTABPAGE ;

class CTabCtrl {
public:
			CTabCtrl(HINSTANCE hInstance, HWND hTabCtrl)	;
	BOOL	CreateTabPage(LPTABPAGE lptp)					;
	void	ShowTabPage(int nPage)							;
	void	ClearTabCtrl(void)								;
	BOOL	OnNotify(LPARAM lParam)							;
			~CTabCtrl()										;
private:
protected:
	HINSTANCE				m_hInstance		;
	HWND					m_hTabCtrl		;
	std::vector<LPTABPAGE>	m_TabPages		;
	HIMAGELIST				m_hImageList	;
} ;

#endif

